﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WxCollect
{
    public class ChatResult
    {
        public List<ChatInfo> data { get; set; }

        public int total { get; set; }

        public int errcode { get; set; }
    }

    public class ChatInfo
    {
        public string user_id { get; set; }

        public string client_time { get; set; }

        public string sub_user_id { get; set; }

        public Content content { get; set; }

        public string ctime { get; set; }

        public FromUser from_user { get; set; }


        public string from_wxid { get; set; }


        public string message_id { get; set; }

        public int msg_type { get; set; }

        public string session_id { get; set; }

        public string session_type { get; set; }

        public string title { get; set; }

        public ToUser to_user { get; set; }

        public string to_wxid { get; set; }

        public string wxid { get; set; }

        public string _id { get; set; }

        public string _index { get; set; }
    }

    public class FromUser
    {
        public string avatar { get; set; }

        public string nickname { get; set; }

        public string remark { get; set; }

        public string wx_alias { get; set; }

        public string wxid { get; set; }
    }

    public class ToUser
    {
        public string avatar { get; set; }

        public string nickname { get; set; }

        public string member_count { get; set; }

        public string owner_wxid { get; set; }

        public string wxid { get; set; }
    }

    public class Content {
        public string text { get; set; }
        public string title { get; set; }

        public string url { get; set; }
        public string cover { get; set; }
        public string desc { get; set; }
        public string raw_msg { get; set; }

        public string name { get; set; }

        public string appid { get; set; }

        public string weapp_iconurl { get; set; }

        public int type { get; set; }

        public UserInfo user_info { get; set; }

        public string ext { get; set; }
    }

    public class UserInfo
    {
        public string avatar { get; set; }

        public string nickname { get; set; }

        public string wxid { get; set; }
      
    }

}
